<?php
class LogoutModel extends Model
{
    public function handleLogout()
    {
        $session = Session::getInstance();
        if($session->isExist('id'))
        {
//            unset($_SESSION['id']);
//            unset($_SESSION['permission']);
            $session->remove('id');
            $session->remove('permission');
        }
        Utility::redirect(NULL);
    }
}